package com.newly.common.base.entity.sys.menu.vo;

import com.newly.common.base.constants.MenuConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @program: newly-parent
 * @remark: 菜单类型VO
 * @author: guan
 * @create: 2021-12-31 00:29
 */
@Data
public class MenuTypeVo {
    /**
     * 菜单类型编码
     */
    @ApiModelProperty("菜单类型编码")
    private int code;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    public MenuTypeVo(MenuConstant.Type value) {
        this.code = value.getCode();
        this.remark = value.getRemark();
    }

    public MenuTypeVo() {
    }
}
